package com.gzq.factorymethod.practice0;

public class NvWa {
	public static void main(String[] args) {
		IBaGuaLu baGuaLu = new BaGuaLuImpl();
		BlackHuman createHuman1 = baGuaLu.createHuman(BlackHuman.class);
		createHuman1.getColor();
		YellowHuman createHuman2 = baGuaLu.createHuman(YellowHuman.class);
		createHuman2.getColor();
		WhiteHuman createHuman3 = baGuaLu.createHuman(WhiteHuman.class);
		createHuman3.getColor();
	}
}
